package server.startup;

import server.connector.http.HttpConnector;
import server.core.SimpleContainer;

public class BootStrap {
    public static void main(String[] args) {
        HttpConnector httpConnector = new HttpConnector();
        SimpleContainer container = new SimpleContainer();
        httpConnector.setContainer(container);
        try {
            //连接器初始化,创建ServerSocket
            httpConnector.initialize();
            //连接器创建好初始的处理器数后启动自己的线程
            httpConnector.start();

            System.in.read();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
